<?php

namespace app\servercertificate\service\certificate;
use app\manage\service\ApiBase;

/**
 * @author:      李颖
 * @DateTime:    2017-11-07 15:41:39
 * @Description: 证书发票
 */

class Invoice extends ApiBase
{

	protected $invoiceLogic = 'app\servercertificate\logic\Invoice';
    protected $invoiceValidate = 'app\servercertificate\validate\Invoice';

    /*用户对某个提货单进行申请发票*/
    public function applyInvoice(): array 
    {
    	$data = $this->haveIssetReceiveData(['user_id'=>0, 'pick_up_id'=>0, 'type'=>' ', 'invoice_title'=>' ', 'unit_name'=>'', 'content'=>'']);
    	return $this->stepRun($data, 'applyInvoice');
    }

    /*后台获取申请发票列表*/
    public function invoiceList(): array 
    {
    	$data = $this->haveIssetReceiveData(['page'=>1, 'listRows'=>15]);
    	return $this->stepRun($data, 'invoiceList');
    }
}